-- Mirror_by_Dan.lua

-- Mirror.  Mirrors both horiz and vert...

for y = 0, height - 1 do
  for x = 0, width - 1 do
    x2=(width/2)-math.abs(x-(width/2))
    y2=(height/2)-math.abs(y-(height/2))
    r, g, b = get_rgb(x2, y2)
    set_rgb(x, y, r, g, b)
  end
  progress(y / height)
end